package j04future;

public class J2 {
    public static void main(String[] args) {
        Thread t1 = new Thread(()->{
            for (int i = 0; i < 100; i++) {
                System.out.println("i = " + i);
            }
        });
        //守护线程
        t1.setDaemon(true);
        t1.start();

        System.out.println("end");
    }
}
